/* CD Carousel Door */ ;/* v2.02 */ ;/* by Bill Esposito */ ;/* The Cereal Port BBS */;/* 1:132/152 */;/* (603)899-3335 */;/* */;/* Magic name 'CDCAR' */;/* for latest version */;/* */;/* *********************************************************************** */;/* DISCLAIMER: This software is provided "AS IS" without any warranty of */;/* any kind, either expressed or implied. USE IT AT YOUR OWN RISK. */;/* */;/* Copyright 1993 by Bill Esposito. This program is SHAREWARE. Please */;/* read the file SHAREWRE.TXT included in this archive. */;/* *********************************************************************** */;/* ***** CDMENU.CMD ***** */;/* The CD Carousel Menu program. */;/***************************************************************************/
config=cdcar.cfg;ver='v2.02';f=1;do until lines(config)=0; param.f=linein(config); f=f+1;end;ok=stream(config,c,'close');parse var param.1 default junk;parse var param.3 homedir junk;parse var param.5 download junk;parse var param.6 fnum junk;parse var param.7 type junk;parse var param.8 marea junk;parse var param.9 tnode junk;parse var param.10 fnode junk;parse var param.11 sysopfirst sysoplast junk;parse var param.15 pl;yel='';cyan=''
say'28H 80H/1HO';say'30HReview error log80H21HS';say'26H 80HO1H/';say'30HQuit 49H 80HS1H2';say'31H 80H/1HO30HSelect:80H2';say'1HS80HO1H/2OS/2OS/2OS/2OS/2';say'19HOS/2OS/2OS/2OS/2OS/2OS/2O';say'44HS/2OS/2OS/2OS/2OS/2OS/2OS/2';say'71HOS/2OS/2OS1H';;call syscurpos 20, 36;pull select;if select='S' then call cdconvrt.cmd 1;if select='F' then call cdmaint.cmd 1;if select='L' then call cdcar homedir 1 1 sysopfirst sysoplast ;if select='R' then call logs;if select='Q' then call quit;if select<>'S' then if select<>'F' then if select<>'L' then if select<>'Q' then call menu; quit: ; exit
say'1H/30HQuit 49H 80HS';say'1H231H 80H/1HO30HSelect:';say'80H21HS80HO1H/2OS/2OS/2OS/2';say'15HOS/2OS/2OS/2OS/2OS/2OS/2';say'39HOS/2OS/2OS/2OS/2OS/2OS/2OS';say'65H/2OS/2OS/2OS/2OS1H';;;;call syscurpos 20, 36;pull select;if select='E' then call errors;if select='R' then call errors;if select='Q' then call menu;if select='f' then call fill;;; ; errors: ; /* Read */
; read: ; ; if select = 'E' then file=homedir'errors.log' ; if select = 'F' then file=homedir'errors.log' ; if select = 'R' then file=homedir'request.log' ; if select = 'E' then type='Error' ; if select = 'R' then type='Request' ; if select = 'F' then type='Fill' ; ok=stream(file,c,'close') ; call sysfiletree file, 'err.', 'F' ; if err.0=0 then call qdel ; x=1 ; loop: ; y='1' ; linein(file,1,0) ; '@cls' ; loop2: ; do until x > 23 ; parse value linein(file) with disk nmi alias user level loc fulldirectory filename date time desc
say disk nmi alias user level loc fulldirectory filename date time desc ; if type='Fill' then do; say; say 'Do you want to fill this request? (y,N)'; pull fy; if left(fy,1)='Y' then call lineout homedir''disk'.req',nmi alias user level loc fulldirectory filename date time desc ; if left(fy,1)<>'Y' then call lineout homedir'errors.tmp', disk nmi alias user level loc fulldirectory filename date time desc ; end; if lines(file)=''0'' then call qdel ; /* say 'Press the <ENTER> key to continue' ; pull enter ; call qdel ; end */ ; ; x=x+y; end; more:; x=1; say 'more? (Y,n)'; pull yn
if yn='N' then call qdel; else; call loop2; call qdel; qdel:; ok=stream(file,c,'close'); if err.0=1 then do; say; say brt||yel'Do you want to delete the 'type' Log? (y,N)'cyan; pull yn; if yn='Y' then del file; if type='Fill' then do; ok=stream('errors.log',c,'close'); ok=stream('errors.tmp',c,'close'); '@copy errors.tmp errors.log >nul'; '@del errors.tmp >nul'; end; end; if err.0=0 then do; '@cls'
say; say brt||yel'There are no errors reported.' ; say 'Press <ENTER> to continue.'; pull yn;end ;call logs;more1:;say 'more? (Y,n)';pull yn;if yn='N' then if select='E' then signal logs;if yn='N' then if select='R' then signal logs;if yn='N' then call menu;;;IN.195;IN.196;IN.197;IN.198;IN.199;IN.200